package cn.imokay.implementations;

import java.util.Timer;

public class TimerTask {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.scheduleAtFixedRate(new java.util.TimerTask() {
            @Override
            public void run() {
                System.out.println("TimerTask run");
            }
        },500,1000);
    }
}
